/**
 * 
 */
package org.keshproject.dms.service.impl;

import org.keshproject.dms.dao.IBalanceSheetDao;
import org.keshproject.dms.dao.ICompanyInfoDao;
import org.keshproject.dms.pojo.BalanceSheet;
import org.keshproject.dms.pojo.CompanyInfo;
import org.keshproject.dms.service.IFinanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author shiwen
 * 
 */
@Service
public class FinancialService implements IFinanceService {

	@Autowired
	public ICompanyInfoDao companyInfoDao;

	@Autowired
	public IBalanceSheetDao balanceSheetDao;

	@Override
	public BalanceSheet getBalanceSheet(int companyId, int fiscalYear) {
		return balanceSheetDao.getByFiscalYear(companyId, fiscalYear);
	}

	public ICompanyInfoDao getCompanyInfoDao() {
		return companyInfoDao;
	}

	public void setCompanyInfoDao(ICompanyInfoDao companyInfoDao) {
		this.companyInfoDao = companyInfoDao;
	}

	public IBalanceSheetDao getBalanceSheetDao() {
		return balanceSheetDao;
	}

	public void setBalanceSheetDao(IBalanceSheetDao balanceSheetDao) {
		this.balanceSheetDao = balanceSheetDao;
	}

}
